/*
 * Texture.h
 *
 *  Created on: Feb 5, 2010
 *      Author: dcrown
 */

#ifndef TEXTURE_H_
#define TEXTURE_H_

#include <d3d9.h>
#include <d3dx9.h>

class Texture
{
public:
	Texture() {Clear();}
	virtual ~Texture() {}

	void Clear();
	bool Create(const char* filename, const char* id, int width, int height);
	void Destroy();

	LPDIRECT3DTEXTURE9 GetTexture();
	void Update();

private:
	LPDIRECT3DTEXTURE9 texture;
	const char* id;
	const char* filename;
};

#endif /* TEXTURE_H_ */
